package com.cll.pmis.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.github.llchen.apidoc.annotation.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenliangliang
 * @since 2018-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(description = "菜单表")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 权限名
     */
    private String name;
    /**
     * 父权限
     */
    private Integer pid;

    private String icon;

    /**
     * 菜单类型
     */
    private Integer type;
    /**
     * 描述
     */
    private String description;

    /**
     * 排序号
     */
    private Integer orderNum;

    private String url;
    /**
     * 权限
     */
    private String perms;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 子菜单
     */
    @TableField(exist=false)
    private List<Menu> subMenu;

}
